<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
request.setCharacterEncoding("utf-8");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>登录</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
center.pos {
	position: relative;
	top: 80px;
}

body {
	background-image: url("C:\Users\Yang\Desktop\图片\psu (4).jpg");
}

.input1 {
	width: 300px;
	height: 37px;
}

.input2 {
	width: 80px;
	height: 37px;
}
</style>

<script type="text/javascript">
	function check(){
	var form=document.getElementById('login');
	var name=form.name.value;
	var password=form.password.value;
	if(name!="" && password!=""){
	form.action="loginServlet";
	}
	else{
	     alert("用户名或密码不能为空！");
	}	
	}	
	</script>


</head>

<body>

	<center class="pos">
		<font color="red" size="5">${info}</font>
		<form method="post" onsubmit="return check()" id="login">
			<table>
				<tr>
					<td><h3>用户名：</h3></td>
					<td><input class="input1" type="text" name="name"
						maxlength='10' /></td>
				</tr>
				<tr>
					<td><h3>密&nbsp;&nbsp;&nbsp;&nbsp;码：</h3></td>
					<td><input class="input1" type="password" name="password"
						maxlength='10' /></td>
				</tr>
				<!-- <tr>
					<td></td>
					<td><input class="input2" type="radio" name="user"
						checked="checked" value="admin" />管理员 <input class="input2"
						type="radio" name="user" value="personnel" />人事部</td>
				</tr> -->
				<tr>
					<td>&nbsp;</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="input2"
						type="submit" value="登录" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;<input class="input2" type="reset" value="重置" />
					</td>
				</tr>
			</table>
		</form>
	</center>
</body>
</html>
